<template>
    <div>
        {{ages}}
        <button @click="ages++">加</button>
        <button @click="ages--">减</button>
    </div>
</template>
<script>
export default {
    data(){
        return{
            ages:0
        }
    }
}
</script>